package MapHomeWork.sixthquestion;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class UnionLotto {
    public static void main(String[] args) {
        List list = new ArrayList();
        Random random = new Random();
        int N=0;
        int num=0;
        while (num<6) {

            N = random.nextInt(33)+1;
            if (!list.contains(N)){
                list.add(N);
                num++;
            }else {
                continue;
            }
        }
        int M=random.nextInt(16)+1;
       /* String str="\t";
        for (int i = 0; i <list.size() ; i++) {
            str+=list.get(i);
        }*/
        String str1=list.get(0)+"\t"+list.get(1)+"\t"+list.get(2)+"\t"+list.get(3)
            +"\t"+list.get(4)+"\t"+list.get(5)+"\t"+M;
        //String string =str+M;
        System.out.println(str1);
    }
}
